package xml;

public class Player {
	
	private int id;
	private int goals;
	private int yellowCards;
	private int fieldsPassed;
	private int ballContacts;
	private int redCards;
	
	public Player(int id){
		
		this.id = id;
		this.goals = 0;
		this.yellowCards = 0;
		this.fieldsPassed = 0;
		this.ballContacts = 0;
		this.redCards=0;
	}
	
	public int getID(){
		return id;
	}
	
	public int getGoals() {
		return goals;
	}

	public void setGoals(int g) {
		this.goals+= g;
	}

	public int getYellowCards() {
		return yellowCards;
	}

	public void setYellowCards(int cards) {
		this.yellowCards+= cards;
	}
	
	public int getRedCards() {
		return redCards;
	}

	public void setRedCards(int cards) {
		this.redCards+= cards;
	}

	public int getFieldsPassed() {
		return fieldsPassed;
	}

	public void addFieldPassed() {
		this.fieldsPassed++;
	}

	public int getBallContacts() {
		return ballContacts;
	}

	public void setBallContacts(int cont) {
		this.ballContacts = cont;
	}
	
}
